using System;
using System.Collections.Generic;
using System.Text;

namespace BlackJackSimulator
    {

    public class CARD_SUIT
        {
        private int mH = 0;
        private int mD = 0;
        private int mC = 0;
        private int mS = 0;
        Random rnd;
        public CARD_SUIT()
            {
            
            }
        public CARD_SUIT(int DKNum)
            {
            mH = DKNum;
            mD = DKNum;
            mC = DKNum;
            mS = DKNum;
            rnd = new Random();
            }
        public CD_SUIT_TYPES GetRndSuit()
            {
          
            int iCS=rnd.Next(1,4);

            switch (iCS)
                {
                case 1:
                    mH -= 1;
                    return CD_SUIT_TYPES.H;
                case 2:
                    mD -= 1;
                    return CD_SUIT_TYPES.D;
                case 3:
                    mS -= 1;
                    return CD_SUIT_TYPES.S;
                case 4:
                    mC -= 1;
                    return CD_SUIT_TYPES.C;
                default:
                    break;
                }
            return CD_SUIT_TYPES.NOTHING;

            }
        public CD_SUIT_TYPES GetSuitType(int SuitTypeID)
            {
            switch (SuitTypeID)
                {
                case 1:
                    
                    return CD_SUIT_TYPES.H;
                case 2:
                   
                    return CD_SUIT_TYPES.D;
                case 3:
                   
                    return CD_SUIT_TYPES.S;
                case 4:
                   
                    return CD_SUIT_TYPES.C;
                default:
                    return CD_SUIT_TYPES.NOTHING;
                    break;
                }
            

            }
        public enum CD_SUIT_TYPES
            {

            H = 1,
            D = 2,
            S = 3,
            C = 4,
            NOTHING=5
            }
        }
}
